package container

import "time"

type Test struct {
	StrTest string
	MapTest map[string]int
}

type StudentRecordContainerTest struct {
	StudentInfoList      string
	StudentLearnStatList Test
	StudentComingTime    string
}

func (st *StudentRecordContainerTest) DeleteData() {

}

func (st *StudentRecordContainerTest) Init(StudentId string) {
	st.StudentComingTime = time.Now().Format("2006-01-02 15:04:05")
	st.StudentInfoList = StudentId
	// st.StudentLearnStatList = new(Test)
	st.StudentLearnStatList.StrTest = StudentId
	st.StudentLearnStatList.MapTest = make(map[string]int)
	st.StudentLearnStatList.MapTest[StudentId] = 0
	st.StudentLearnStatList.MapTest[st.StudentComingTime] = 1
}

func (st *StudentRecordContainerTest) Come() {
	st.StudentComingTime = time.Now().Format("2006-01-02 15:04:05")
	st.StudentLearnStatList.MapTest[st.StudentInfoList] += 1
	st.StudentLearnStatList.MapTest[st.StudentComingTime] = 1
}
